/*
 * @Author: yangzonglong
 * @Date: 2021-05-17 10:18:04
 * @version: v1.0.0
 * @Descripttion: 通知节点
 * @LastEditors: yangzonglong
 * @LastEditTime: 2023-02-15 17:31:02
 * @Auditor: 
 */
import React, { useState } from 'react';
import { Tabs } from '@library';
import Baseset from './_Baseset';
import Temp from './_Temp';
import style from './../style.module.scss';

const t = window.$app.t;

const tabsData = [
  { label: t('baseSet'), id: 'baseSet' },
  { label: t('receiveTemp'), id: 'temp' }
]

export default () => {
  const [tabId, setTabId] = useState(tabsData[0].id);

  return (
    <div className={style.scroll}>
      <Tabs mode='tabs' curTabId={tabId} onChange={setTabId} tabs={tabsData} />
      <main>
        {tabId === tabsData[0].id && <Baseset/>}
        {tabId === tabsData[1].id && <Temp/>}
      </main>
    </div>
  )
}
